package com.bangbang.blog.service.impl;

import com.bangbang.blog.pojo.TbClassify;
import com.bangbang.blog.mapper.TbClassifyMapper;
import com.bangbang.blog.service.ITbClassifyService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2021-08-11
 */
@Service
public class TbClassifyServiceImpl extends ServiceImpl<TbClassifyMapper, TbClassify> implements ITbClassifyService {

    @Autowired
    private TbClassifyMapper tbClassifyMapper;

    @Override
    public void insert(TbClassify tbClassify) {
        tbClassifyMapper.insert(tbClassify);
    }

    @Override
    public void delete(Long claId) {
        tbClassifyMapper.deleteById(claId);
    }

    @Override
    public void select(Long claId) {
        tbClassifyMapper.selectById(claId);
    }


}
